(deftemplate transaction
  (slot accountId)
  (slot buyPrice)
  (slot countryCode)
  (slot currentPrice)
  (slot cusip)
  (slot exchange)
  (slot industryGroupID)
  (slot industryID)
  (slot issuer)
  (slot lastPrice)
  (slot purchaseDate)
  (slot sectorID)
  (slot shares)
  (slot subIndustryID)
)
(defrule rule0
 (transaction
    (accountId ?accid)
    (buyPrice ?bp)
    (issuer "AAA")
    (exchange "NYSE")
    (countryCode "US")
    (subIndustryID 25201010)
  )
=>
  (printout t "rule0 was fired" )
)
(defrule rule1 (declare (salience 90) (rule-version 3.2.1) (remember-match FALSE) )
 (transaction
    (accountId ?accid)
    (buyPrice ?bp)
    (issuer "BBB")
    (exchange "NSDQ")
    (countryCode "BR")
    (subIndustryID 25201020)
  )
=>
  (printout t "rule1 was fired" )
)
(defrule rule2
 (transaction
    (accountId ?accid)
    (buyPrice ?bp)
    (issuer "CCC")
    (exchange "LNSE")
    (countryCode "FR")
    (subIndustryID 25201030)
  )
=>
  (printout t "rule2 was fired" )
)
(defrule rule3
 (transaction
    (accountId ?accid)
    (buyPrice ?bp)
    (issuer "DDD")
    (exchange "TKYO")
    (countryCode "NZ")
    (subIndustryID 25201040)
  )
=>
  (printout t "rule3 was fired" )
)
(defrule rule4
 (transaction
    (accountId ?accid)
    (buyPrice ?bp)
    (issuer "EEE")
    (exchange "TWSE")
    (countryCode "CA")
    (subIndustryID 25201050)
  )
=>
  (printout t "rule4 was fired" )
)
(assert (transaction (accountId "0id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 776465086) (exchange "TKYO") (industryGroupID 2530) (industryID 253010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301020) ) )
(assert (transaction (accountId "1id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 847737565) (exchange "TWSE") (industryGroupID 2530) (industryID 253010) (issuer "BBB") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301010) ) )
(assert (transaction (accountId "2id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 584420736) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201040) ) )
(assert (transaction (accountId "3id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 280242230) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "GGG") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "4id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 576335338) (exchange "PSEX") (industryGroupID 2520) (industryID 252010) (issuer "GGG") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )
(assert (transaction (accountId "5id") (buyPrice 55.23) (countryCode "BR") (currentPrice 58.95) (cusip 847737565) (exchange "NYSE") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301010) ) )
(assert (transaction (accountId "6id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 776465086) (exchange "PSEX") (industryGroupID 2530) (industryID 253010) (issuer "AAA") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "7id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 776465086) (exchange "NSDQ") (industryGroupID 2520) (industryID 252010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201050) ) )
(assert (transaction (accountId "8id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 280242230) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "GGG") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201040) ) )
(assert (transaction (accountId "9id") (buyPrice 55.23) (countryCode "NU") (currentPrice 58.95) (cusip 776465086) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "DDD") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "10id") (buyPrice 55.23) (countryCode "US") (currentPrice 58.95) (cusip 847737565) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "BBB") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201020) ) )
(assert (transaction (accountId "11id") (buyPrice 55.23) (countryCode "MX") (currentPrice 58.95) (cusip 280242230) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "BBB") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201040) ) )
(assert (transaction (accountId "12id") (buyPrice 55.23) (countryCode "NU") (currentPrice 58.95) (cusip 576335338) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "AAA") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )
(assert (transaction (accountId "13id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 776465086) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "AAA") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201040) ) )
(assert (transaction (accountId "14id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 847737565) (exchange "NSDQ") (industryGroupID 2530) (industryID 253010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301010) ) )
(assert (transaction (accountId "15id") (buyPrice 55.23) (countryCode "CH") (currentPrice 58.95) (cusip 776465086) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "DDD") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201020) ) )
(assert (transaction (accountId "16id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 776465086) (exchange "LNSE") (industryGroupID 2520) (industryID 252010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201040) ) )
(assert (transaction (accountId "17id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 776465086) (exchange "PSEX") (industryGroupID 2520) (industryID 252010) (issuer "BBB") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )
(assert (transaction (accountId "18id") (buyPrice 55.23) (countryCode "BR") (currentPrice 58.95) (cusip 847737565) (exchange "LNSE") (industryGroupID 2520) (industryID 252010) (issuer "BBB") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "19id") (buyPrice 55.23) (countryCode "CA") (currentPrice 58.95) (cusip 280242230) (exchange "LNSE") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301020) ) )
(assert (transaction (accountId "20id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 847737565) (exchange "LNSE") (industryGroupID 2530) (industryID 253010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "21id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 280242230) (exchange "LNSE") (industryGroupID 2520) (industryID 252010) (issuer "DDD") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201050) ) )
(assert (transaction (accountId "22id") (buyPrice 55.23) (countryCode "BR") (currentPrice 58.95) (cusip 576335338) (exchange "LNSE") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301020) ) )
(assert (transaction (accountId "23id") (buyPrice 55.23) (countryCode "BR") (currentPrice 58.95) (cusip 280242230) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201020) ) )
(assert (transaction (accountId "24id") (buyPrice 55.23) (countryCode "CA") (currentPrice 58.95) (cusip 847737565) (exchange "LNSE") (industryGroupID 2520) (industryID 252010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "25id") (buyPrice 55.23) (countryCode "TW") (currentPrice 58.95) (cusip 776465086) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "GGG") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "26id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 847737565) (exchange "TKYO") (industryGroupID 2530) (industryID 253010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301010) ) )
(assert (transaction (accountId "27id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 584420736) (exchange "NSDQ") (industryGroupID 2530) (industryID 253010) (issuer "DDD") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "28id") (buyPrice 55.23) (countryCode "TW") (currentPrice 58.95) (cusip 584420736) (exchange "PSEX") (industryGroupID 2520) (industryID 252010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201030) ) )
(assert (transaction (accountId "29id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 847737565) (exchange "NYSE") (industryGroupID 2520) (industryID 252010) (issuer "AAA") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201020) ) )
(assert (transaction (accountId "30id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 584420736) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )
(assert (transaction (accountId "31id") (buyPrice 55.23) (countryCode "CA") (currentPrice 58.95) (cusip 776465086) (exchange "PSEX") (industryGroupID 2530) (industryID 253010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "32id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 584420736) (exchange "LNSE") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301020) ) )
(assert (transaction (accountId "33id") (buyPrice 55.23) (countryCode "FR") (currentPrice 58.95) (cusip 576335338) (exchange "NSDQ") (industryGroupID 2530) (industryID 253010) (issuer "DDD") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "34id") (buyPrice 55.23) (countryCode "US") (currentPrice 58.95) (cusip 584420736) (exchange "PSEX") (industryGroupID 2520) (industryID 252010) (issuer "AAA") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201020) ) )
(assert (transaction (accountId "35id") (buyPrice 55.23) (countryCode "US") (currentPrice 58.95) (cusip 584420736) (exchange "TKYO") (industryGroupID 2520) (industryID 252010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201050) ) )
(assert (transaction (accountId "36id") (buyPrice 55.23) (countryCode "NZ") (currentPrice 58.95) (cusip 576335338) (exchange "NSDQ") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301030) ) )
(assert (transaction (accountId "37id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 576335338) (exchange "NSDQ") (industryGroupID 2520) (industryID 252010) (issuer "FFF") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )
(assert (transaction (accountId "38id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 584420736) (exchange "LNSE") (industryGroupID 2530) (industryID 253010) (issuer "CCC") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25301020) ) )
(assert (transaction (accountId "39id") (buyPrice 55.23) (countryCode "IT") (currentPrice 58.95) (cusip 847737565) (exchange "TWSE") (industryGroupID 2520) (industryID 252010) (issuer "EEE") (lastPrice 50.12) (sectorID 25) (shares 100) (subIndustryID 25201010) ) )